<?
include('../modelo/conexion.php');
$con= new Conexion();
$con->Conectarse();
	
$error=$_GET["msg"];

$string= "SELECT COUNT(".$_GET["db_campo"].")".
         " FROM ".$_GET["db_tabla"]." 
		   WHERE ".$_GET["db_campo"]."='".$_GET["valor"]."'";

$result= mysql_query($string, $con ) or die(mysql_error());
$row = mysql_fetch_row( $result );
$totalRows = $row[0]; 

mysql_free_result($result);
mysql_close();
if($totalRows>0){	
	echo $error;	
}else{
	//echo "Disponible";
}

?>
